package crudfx.util;
import java.util.*;
/**
 * @profile desktop
 * @author Sergey Surikov
 */
public function message(txt:String):Void{
    print(new Date());
    print(": ");
    println(txt);
    }
/**
 * @profile desktop
 * @author Sergey Surikov
 */
public function message(o:Object,txt:String):Void{
    print(new Date());
    print(": ");
    print(o.getClass().getName());
    print(": ");
    println(txt);
    }
/**
 * @profile desktop
 * @author Sergey Surikov
 */
public function error(t:java.lang.Throwable):Void{
    message("error: {t.getMessage()}");
    t.printStackTrace();
    }
/**
 * @profile desktop
 * @author Sergey Surikov
 */
public function error(o:Object,t:java.lang.Throwable):Void{
    message(o.getClass().getName(),"error: {t.getMessage()}");
    t.printStackTrace();
    }
/**
 * @profile desktop
 * @author Sergey Surikov
 */
public function dumpMemory():Void{
    ConsoleIO.message("Allocated: {(java.lang.Runtime.getRuntime().totalMemory()-java.lang.Runtime.getRuntime().freeMemory())/1000}kb, Free Memory:{java.lang.Runtime.getRuntime().freeMemory()/1000}kb, Total Memory:{java.lang.Runtime.getRuntime().totalMemory()/1000}kb, Max Memory:{java.lang.Runtime.getRuntime().maxMemory()/1000}kb");
    }
/**
 * @profile desktop
 * @author Sergey Surikov
 */
public class ConsoleIO {

    }
